package com.hyronjs.jiangbiao.antrus.spring.beans.factory.xml;

import org.springframework.core.io.Resource;

public class XmlBeanFactory {
	private final XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this);


	
	/**
	 * Create a new XmlBeanFactory with the given input stream,
	 * which must be parsable using DOM.
	 * @param resource XML resource to load bean definitions from
	 * @param parentBeanFactory parent bean factory
	 * @throws Exception in case of loading or parsing errors
	 */
	public XmlBeanFactory(Resource resource) throws Exception {
		this.reader.loadBeanDefinitions(resource);
	}

}
